package com.bestcem.xm.qdes.controller.vo;

import com.bestcem.xm.component.mybatis.format.String2JacksonSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 描述：配额vo
 * 作者：杨海奇
 * 时间：2022/8/25 17:34
 */
@Data
public class QdesQuotaVo {

    @JsonProperty("id")
    private String id;

    @JsonProperty("created_dt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdDt;

    @JsonProperty("updated_dt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedDt;

    @JsonProperty("created_id")
    private String createdId;

    @JsonProperty("updated_id")
    private String updatedId;

    @JsonProperty("version_id")
    private String versionId;

    @JsonProperty("deleted")
    private Boolean deleted;

    @JsonProperty("name")
    private String name;

    @JsonProperty("project_id")
    private String projectId;

    @JsonProperty("quota_type")
    private Integer quotaType;

    @JsonProperty("quota_cond_list")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String quotaCondList;

    @JsonProperty("ava_qgid_list")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String avaQgidList;

    @JsonProperty("row1")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String row1;

    @JsonProperty("row2")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String row2;

    @JsonProperty("col1")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String col1;

    @JsonProperty("col2")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String col2;
}
